package com.iotek.ssm.mapper;

import com.iotek.ssm.pojo.Position;
import com.iotek.ssm.pojo.Section;

import java.util.List;

public interface SectionMapper {
    List<Section> findSections() throws Exception;

    Section findSection(Integer id) throws Exception;

    List<Position> findPositions(Integer SectionId) throws Exception;

    void addSection(String section) throws Exception;

    void addPosition(Position position) throws Exception;

    void delPosition(Integer positionId)throws Exception;

    //删除部门会把该部门下的职位一并删除
    void delSectionAndPositions(Integer sectionId)throws Exception;

    void updateSection(Section section)throws Exception;

    void updatePosition(Position position)throws Exception;
}
